/**
 * 
 */
package cn.netjava.softkid.chapter04;

/**
 * @author Administrator
 *
 */
public class ChildClass extends SuperClass{

	/**
	 * 
	 */
	public ChildClass(){
		super("lijun");
	}
	
	public void output()
	{
		System.out.println("child:"+name);
	}
	
	public void output(String name)
	{
		System.out.println("child:"+name);
	}
	
	public void output(String name,int age)
	{
		System.out.println("child:"+name+"  "+age);
	}
	public void outputSuper()
	{
		super.output();
		super.output("lijun");
		super.output("lijun", 20);
	}
	public static void main(String args[])
	{
		ChildClass cc = new ChildClass();
		cc.output();
		cc.output("linhao");
		cc.output("huyan",20);
		System.out.println();
		cc.outputSuper();
	}
}
